import {PlainObject} from "@/bean/index"
import api from "@/utils/request"

export function addComment(data:PlainObject){
    return api({
        method:"POST",
        url:"api/article/addComment",
        data
    })
}

export function getComments(params:PlainObject){
    return api({
        method:"GET",
        url:"api/article/getComments",
        params
    })
}